<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

include_once('adminController.php');

class Dashboard extends AdminController {

	function __construct() {
		parent::__construct();
	}

	public function index() {
		$this->load->view('dashboard/index');
	}

	function status() {

	}

	function advertisement() {
		$this->load->view('dashboard/advertisement');
	}

	function alert() {
		$this->load->view('dashboard/alert');
	}

	function profile(){
		$user = $this->session->userdata('user');
		$this->load->view('dashboard/profile' , array('user'=>$user));
	}


	function workground() {
		$wg = $this->input->get('wg');
		if(!$wg) return;

		$curWorkground = $this->input->get_request_header('Workground');
		$this->load->model('admin_profile_model');
		$sidemenu = $this->admin_profile_model->getSidemenu($wg);	
		if(isset($sidemenu['default'])) {
			redirect($sidemenu['default']);
		}
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */
